# import requests
from curl_cffi import requests


# url = 'https://tieba.baidu.com/t/f/?class=college'
# response = requests.get(url, headers={
#     "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36",
#     "Referer": "https://tieba.baidu.com/"
# })
# print(response.status_code)



# url = 'https://tieba.baidu.com/t/f/?class=college'
# headers = {
#     "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36",
#     "Referer": "https://tieba.baidu.com/"
# }
# cookies = {
#     "BAIDUID": "A9BC0DE6D4E457204310700BBF96E732:FG=1",
#     "BAIDUID_BFESS": "A9BC0DE6D4E457204310700BBF96E732:FG=1",
#     "Hm_lvt_292b2e1608b0823c1cb6beef7243ef34": "1761653106",
#     "Hm_lpvt_292b2e1608b0823c1cb6beef7243ef34": "1761653187"
# }
# response = requests.get(url, headers=headers, cookies=cookies)
# print(response.status_code)

url = 'https://tieba.baidu.com/t/f/?class=college'
response = requests.get(url)
print(response.status_code)